<script setup>
import { ref, computed } from 'vue';
const score = ref([23, 48, 94, 75, 85, 67, 98])
const betterScore = computed(() => {
  return score.value.filter(item => item >= 80)
})
</script>

<template>
  <div>
    <div>成绩:{{ score }}</div>
    <div>好成绩:{{ betterScore }}</div>
  </div>
</template>

<style scoped></style>